package org.nepu.srr.安全管理文件;

import cn.hutool.core.lang.Validator;
import cn.hutool.json.JSONUtil;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.nepu.srr.安全管理文件.安全管理文件.B31SafeManagementFileParams;

import java.util.List;

/**
 * @author kindear
 */
@Slf4j
@Data
@ApiModel(value = "安全管理文件参数")
public class B3SafeManagementFileParams {
    B31SafeManagementFileParams b31;

    List<Integer> mx;


    public B3SafeManagementFileParams jsonBuild(String jsonStr){
        if (Validator.isEmpty(jsonStr)){
            return new B3SafeManagementFileParams();
        }
        return JSONUtil.toBean(jsonStr, B3SafeManagementFileParams.class);
    }
}
